package com.devunion.salon.client.app.bean;

import com.extjs.gxt.ui.client.data.BaseModel;
import com.extjs.gxt.ui.client.data.BaseTreeModel;

/**
 * @author spetrakovsky
 */
public class ProductModel extends BaseTreeModel {

    public ProductModel() {
        super();
    }

    public ProductModel(Long id, Float price, Float markup, Float retailPrice, String uom, Long qty, Long reorderAt, Boolean discount,
                        Boolean priceOverrides, String name, String barCode, String description, VendorModel vendor, DepartmentModel inventoryDepartment, Boolean taxable) {
        setId(id);
        setPrice(price);
        setMarkup(markup);
        setRetailPrice(retailPrice);
        setUom(uom);
        setQty(qty);
        setReorderAt(reorderAt);
        setDiscount(discount);
        setPriceOverrides(priceOverrides);
        setName(name);
        setBarCode(barCode);
        setDescription(description);
        setVendor(vendor);
        setInventoryDepartment(inventoryDepartment);
        setTaxable(taxable);
    }

    public Float getPrice() {
        return get("price");
    }

    public void setPrice(Float price) {
        set("price", price);
    }

    public Float getMarkup() {
        return get("markup");
    }

    public void setMarkup(Float markup) {
        set("markup", markup);
    }

    public Float getRetailPrice() {
        return get("retailPrice");
    }

    public void setRetailPrice(Float retailPrice) {
        set("retailPrice", retailPrice);
    }

    public String getUom() {
        return get("uom");
    }

    public void setUom(String uom) {
        set("uom", uom);
    }

    public Long getQty() {
        return get("qty");
    }

    public void setQty(Long qty) {
        set("qty", qty);
    }

    public Long getReorderAt() {
        return get("reorderAt");
    }

    public void setReorderAt(Long reorderAt) {
        set("reorderAt", reorderAt);
    }

    public Boolean isDiscount() {
        return get("discount");
    }

    public void setDiscount(Boolean discount) {
        set("discount", discount);
    }

    public Boolean isPriceOverrides() {
        return get("priceOverrides");
    }

    public void setPriceOverrides(Boolean priceOverrides) {
        set("priceOverrides", priceOverrides);
    }

    public String getName() {
        return get("name");
    }

    public void setName(String name) {
        set("name", name);
    }

    public String getBarCode() {
        return get("barCode");
    }

    public void setBarCode(String barCode) {
        set("barCode", barCode);
    }

    public String getDescription() {
        return get("description");
    }

    public void setDescription(String description) {
        set("description", description);
    }

    public VendorModel getVendor() {
        return get("vendor");
    }

    public void setVendor(VendorModel vendor) {
        set("vendor", vendor);
    }

    public DepartmentModel getInventoryDepartment() {
        return get("inventoryDepartment");
    }

    public void setInventoryDepartment(DepartmentModel inventoryDepartment) {
        set("inventoryDepartment", inventoryDepartment);
    }

    public Boolean isTaxable() {
        return get("taxable");
    }

    public void setTaxable(Boolean taxable) {
        set("taxable", taxable);
    }

    public Long getId() {
        return get("id");
    }

    public void setId(Long id) {
        set("id", id);
    }

}
